package cn.sxgan.common.entity.converts;


import cn.sxgan.common.entity.SysMenu;
import cn.sxgan.common.entity.vo.SysMenuVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description: 菜单权限表实体转换接口
 * @Author: sxgan sxgan@foxmail.com
 * @Date: 2024-09-13
 * @Version: 1.0.0
 **/
@Mapper
public interface ISysMenuConvert {
    ISysMenuConvert INSTANCE = Mappers.getMapper(ISysMenuConvert.class);
    
    SysMenu convert(SysMenuVO vo);
    
    SysMenuVO convert(SysMenu entity);
    
    List<SysMenuVO> convertList(List<SysMenu> list);
    
}